import request from '@/utils/request'

// 查询工地土方信息列表
export function listSoil(query) {
  return request({
    url: '/soil/site/list',
    method: 'get',
    params: query
  })
}

// 查询工地土方信息详细
export function getSoil(ID) {
  return request({
    url: '/soil/site/' + ID,
    method: 'get'
  })
}

// 新增工地土方信息
export function addSoil(data) {
  return request({
    url: '/soil/site',
    method: 'post',
    data: data
  })
}

// 修改工地土方信息
export function updateSoil(data) {
  return request({
    url: '/soil/site',
    method: 'put',
    data: data
  })
}

// 删除工地土方信息
export function delSoil(ID) {
  return request({
    url: '/soil/site/' + ID,
    method: 'delete'
  })
}
